<?php

function array_map_recursive($function, $data)
{
	foreach ($data as $i => $item)
		$data[$i] = ((is_array($item))?array_map_recursive($function, $item):$function($item));

	return $data ;
}

?>